Skip to content

Conversation

@elementary-data-local
Copy link

This PR simplifies the customers model by removing all complex logic and transformations, replacing it with a simple pass-through query that selects all columns from the stg_customers staging table.

Changes:

  • Removed all CTEs (customers, orders, payments, signups, customer_orders, customer_payments, final)
  • Replaced with simple select * from {{ ref('stg_customers') }}
  • This will significantly reduce the model's complexity and execution time

Impact:

  • The customers table will now only contain the columns from stg_customers (customer_id, first_name, last_name)
  • All derived columns (first_order, most_recent_order, number_of_orders, customer_lifetime_value, customer_email, signup_date) will be removed
  • Any downstream models or tests that depend on these columns may need to be updated

    Created by: [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant